在 Perl 中我如何睡眠一毫秒? |
您所在的位置:网站首页 › timesleep 毫秒 › 在 Perl 中我如何睡眠一毫秒? |
\n From perlfaq8: \n\n\nHow can I sleep() or alarm() for under a second? \n\nIf you want finer granularity than the 1 second that the sleep() function provides, the easiest way is to use the select() function as documented in select in perlfunc. Try the Time::HiRes and the BSD::Itimer modules (available from CPAN, and starting from Perl 5.8 Time::HiRes is part of the standard distribution). \n |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |